﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Entitys
{
    public class ZaneResult
    {
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public ZaneResult()
        {

        }

        public ZaneResult(bool res)
        {
            Result = res;
        }
        public bool Result { get; set; } = false;
        public string Message { get; set; } = "";

        public static implicit operator bool(ZaneResult res) => res.Result;

        public static implicit operator ZaneResult(bool res) => new ZaneResult(res);
    }
}
